#ifndef OPENDATAWIZARD_H
#define OPENDATAWIZARD_H

#include <QtGui/QWizard>
#include <QtGui/QFileDialog>
#include <loaderwizardpage.h>
#include <QWizardPage>

namespace Ui {
    class OpenDataWizard;
}

class OpenDataWizard : public QWizard {
    Q_OBJECT
    Q_DISABLE_COPY(OpenDataWizard)
public:
    explicit OpenDataWizard(QWidget *parent = 0);
    virtual ~OpenDataWizard();
    AnatomicalTemplate *GetTemplate();
    QVector<CorrelationMatrix*>& GetIndividualsMatrices() const;
	CorrelationMatrix* GetMeanMatrix();
	CorrelationMatrix* GetMedianMatrix();
    FunctionalNetwork *GetNetwork();

protected:
    virtual void changeEvent(QEvent *e);

private:
    Ui::OpenDataWizard *m_ui;
    LoaderWizardPage *loadPage;
    QWizardPage *finishPage;

private slots:
    void onaccepted();
    void oncurrentIdChanged(int id);
	void on_calculateMeanFromSetCheck_toggled(bool);
	void on_calculateMedianFromSetCheck_toggled(bool);
    void on_browseMeanMatrixButton_clicked();
    void on_browseMedianMatrixButton_clicked();
    void on_browseMatrixButton_clicked();
};

#endif // OPENDATAWIZARD_H
